package com.hs.biye.service;

import com.hs.biye.model.DTO.EmployeeRequest;
import com.hs.biye.model.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.biye.model.VO.EmployeeVO;
import com.hs.biye.model.reslut.ResultPage;

import java.util.List;

/**
* @author haoshuai
* @description 针对表【Employee】的数据库操作Service
* @createDate 2023-12-07 19:03:23
*/
public interface EmployeeService extends IService<Employee> {

    //登录
    Employee login(EmployeeRequest employeeRequest);


    /**
     * 根据id获取员工信息
     *
     * @param id
     * @return
     */
    EmployeeVO getOneEmployee(Integer id);


    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    ResultPage<EmployeeVO> getEmployee(Integer page, Integer size,EmployeeRequest employeeRequest);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    boolean addEmployee(Employee employee);

    /**
     *修改员工
     * @param employee
     * @return
     */
    boolean updateEmployee(Employee employee);

    /**
     * 删除员工
     * @param id
     * @return
     */
    boolean removeEmployee(Integer id);


    //根据部门id获取医生
    List<EmployeeVO> getEmployeeByDepId(Integer id);


    List<EmployeeVO> getEmployeeNotRoom(Integer id);
    List<EmployeeVO> getEmployeeNotRoom2(Integer id,Integer id2);
}
